package com.san.dissertation.bpm.model;

import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

import com.san.dissertation.annotation.CascadeSave;

@Document
public class ProcessPath {
	
	@Id
	private String pathId;
	private String name;
	private Float probability;
	private int count;
	
	@DBRef
	@CascadeSave
	private Process process;
	
	private List<Task> tasks;

	

	public String getPathId() {
		return pathId;
	}

	public void setPathId(String pathId) {
		this.pathId = pathId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Float getProbability() {
		return probability;
	}

	public void setProbability(Float probability) {
		this.probability = probability;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public List<Task> getTasks() {
		return tasks;
	}

	public void setTasks(List<Task> tasks) {
		this.tasks = tasks;
	}
	
	

	public Process getProcess() {
		return process;
	}

	public void setProcess(Process process) {
		this.process = process;
	}

	@Override
	public String toString() {
		return "ProcessPath [pathId=" + pathId + ", name=" + name + ", probability="
				+ probability + ", count=" + count + ", process=" + process
				+ ", tasks=" + tasks + "]";
	}
	
}
